home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VSCOLOR.S < prev    next >
Text File  |  1993-03-16  |  1KB  |  42 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Set color representation (set rgb values).
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vs_color
  11. _vs_color:
  12. ;      .cargs      #8,handle.w,index.w,rgb.l
  13.  
  14. handle      =         8
  15. index      =         10
  16. rgb       =         12
  17.  
  18.           link        a6,#0
  19.  
  20.           move.l    rgb(a6),a0            ;* Since the rgb values and the
  21.           move.w    4(a0),-(sp)         ;* index are supposed to be in the
  22.           move.w    2(a0),-(sp)         ;* intin array, we have to copy the
  23.           move.w    (a0),-(sp)            ;* rgb from the user array to the
  24.           move.w    index(a6),-(sp)     ;* stack, then put the index on the
  25.           move.l    sp,a0                ;* front.  Save a pointer to intin.
  26.  
  27. ;          VContrl    #14,,,#4
  28.           move.w    handle(a6),-(sp)    ; contrl[6]
  29.           clr.l     -(sp)                ; contrl[5,4]
  30.           move.w    #4,-(sp)            ; contrl[3]
  31.           subq.l    #2,sp                ; contrl[2]
  32.           clr.w     -(sp)                ; contrl[1]
  33.           move.w    #14,-(sp)            ; contrl[0]
  34.  
  35.           lea        -12(sp),sp            ;* -> ptsout, intout, ptsin
  36.           move.l    a0,-(sp)            ;* -> intin
  37.           pea        16(sp)                ;* -> contrl
  38.  
  39.           jmp        vdicall
  40.  
  41.           end
  42.